<table width="100%">
    <tr>
        <td align="right">
            <?php echo $this->tag->linkTo(array('users/new', 'Create')); ?>
        </td>
    </tr>
</table>

<table class="browse" align="center">
    <thead>
        <tr>
            <th>Id</th>
            <th>Email</th>
            <th>Name</th>
            <th>Role</th>
            <th>Blocked</th>
         </tr>
    </thead>
    <tbody>
        <?php foreach ($page->items as $user) { ?>
        <tr>
            <td><?php echo $user->id; ?></td>
            <td><?php echo $user->email; ?></td>
            <td><?php echo $user->name; ?></td>
            <td><?php echo $user->role; ?></td>
            <td><?php echo $user->blocked; ?></td>
            <td><?php echo $this->tag->linkTo(array('users/edit/' . $user->id, '<i class="fa fa-pencil"></i>')); ?></td>
            <td><?php echo $this->tag->linkTo(array('users/delete/' . $user->id, '<i class="fa fa-trash"></i>')); ?></td>
        </tr>
        <?php } ?>
    </tbody>
    <tbody>
        <tr>
            <td colspan="2" align="right">
                <table align="center">
                    <tr>
                        <?php echo $this->pagination->generatePagination($page); ?>
                    </tr>
                </table>
            </td>
        </tr>
    <tbody>
</table>
